package com.ssy.lingxi.purchase.repository.purchaseplan;

import com.ssy.lingxi.purchase.entity.purchaseplan.PurchasePlan;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 采购计划DB操作类
 * */
@Repository
public interface PurchasePlanRepository extends JpaRepository<PurchasePlan, Long>, JpaSpecificationExecutor<PurchasePlan> {

    List<PurchasePlan> findAllByEndTimeLessThanEqualAndInnerStatus(Long currTime, Integer status);
}
